import request from '@/utils/request'

export const pageQueryEmp = (formValue,page,pageSize)=>request.get(`/emps?name=${formValue.name}&gender=${formValue.gender}&begin=${formValue.begin}&end=${formValue.end}&page=${page}&pageSize=${pageSize}`);
export const addEmp = (data)=>request.post("/emps", data);
export const getEmpById = (id)=>request.get(`/emps/${id}`);
export const updateEmpById = (data)=>request.put("/emps", data);
export const deleteEmpById = (id)=>request.delete("/emps?ids="+id); //ids=1,3,5